<?php

namespace App\Http\Requests\Personal\ResumeMange;
use App\Http\Requests\Request;

class addProjectExpRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        $input = $this->all();
        return [
            'project_name'=>'required',
            'starttime'=>'check_time:'.$input['endtime'],
            'post' => 'required',
        ];
    }
    public function messages(){
        return [
            'project_name.required'=>'项目名称必须填写',
            'starttime.check_time'=>'结束年份必须大于开始年份',
            'post.required'=>'担任职位必须填写',
        ];
    }
}